/* $Id: Category.java 88 2008-01-19 15:49:18Z osborn.steven $
 * 
 * Undroid Package Manager
 *
 * Copyright 2007 Steven Osborn
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 */
package com.bitsetters.undroid;

import android.graphics.drawable.Drawable;

/**
 * 
 * @author Steven Osborn - http://steven.bitsetters.com
 */
public class Category extends Object {

    private String mText = "";

    private Drawable mBullet;

    private int mCount;

    private int mCategoryId;

    private boolean mSelectable = true;

    /**
     * 
     * @param text
     * @param bullet
     */
    public Category(String text, Drawable bullet,int count) {
	mBullet = bullet;
	mText = text;
	mCount = count;
    }

    /**
     * 
     * @return
     */
    public boolean isSelectable() {
	return mSelectable;
    }

    /**
     * 
     * @param selectable
     */
    public void setSelectable(boolean selectable) {
	mSelectable = selectable;
    }

    /**
     * 
     * @param text
     */
    public void setText(String text) {
	mText = text;
    }

    /**
     * 
     * @param bullet
     */
    public void setBullet(Drawable bullet) {
	mBullet = bullet;
    }

    /**
     * 
     * @param count
     */
    public void setCount(int count) {
	mCount = count;
    }

    /**
     * 
     * @return
     */
    public String getText() {
	return mText;
    }

    /**
     * 
     * @return
     */
    public Drawable getBullet() {
	return mBullet;
    }

    /**
     * 
     * @return
     */
    public int getCount() {
	return mCount;
    }

    /**
     * 
     * @return
     */
    public int getCategoryId() {
	return mCategoryId;
    }

    /**
     * 
     * @param id
     */
    public void setCategoryId(int id) {
	mCategoryId = id;
    }

}
